package net.minecraft.src;
import java.util.Random;

public class BlockDryDirt extends Block
{
	protected BlockDryDirt(int i, int j)
	{
		super(i,j,Material.wood);
	}
	
	public int quantityDropped(Random Random)
	{
		return 1;
	}
	
	//If you destroy the block whit something better than iron shovel, you get dry dirt,if you destroy it whit something else, you get sand
	
    public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
    {
        if (!par1World.isRemote && par2EntityPlayer.getCurrentEquippedItem() != null && par2EntityPlayer.getCurrentEquippedItem().itemID == Item.shovelSteel.shiftedIndex)
        {
            par2EntityPlayer.addStat(StatList.mineBlockStatArray[this.blockID], 1);
            this.dropBlockAsItem_do(par1World, par3, par4, par5, new ItemStack(mod_permian.DryDirt, 1, par6));
        }
        
        if (!par1World.isRemote && par2EntityPlayer.getCurrentEquippedItem() != null && par2EntityPlayer.getCurrentEquippedItem().itemID == Item.shovelDiamond.shiftedIndex)
        {
            par2EntityPlayer.addStat(StatList.mineBlockStatArray[this.blockID], 1);
            this.dropBlockAsItem_do(par1World, par3, par4, par5, new ItemStack(mod_permian.DryDirt, 1, par6));
        }
        else
        {
            super.harvestBlock(par1World, par2EntityPlayer, par3, par4, par5, par6);
        }
        
    }

    /**
     * Returns the ID of the items to drop on destruction.
     */
    public int idDropped(int par1, Random par2Random, int par3)
    {
        return Block.sand.blockID;
    }
{}{
        
    }

}